﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BBICMS.Model.DTO
{
    public class ProductDTO
    {
        [Key]
        public int Id { get; set; }
        [Required]
        public string ProductNo { get; set; }
            [Required]
            public string ProductName { get; set; }
            public string Parameters { get; set; }
            public string Description { get; set; }
            public string Summary { get; set; }
            [Display(Name = "关键字", Prompt = "Nombre de place")]
            public string Keywords { get; set; }
        [Required]
        public string Thumbnail { get; set; }
            public string ImageUrl { get; set; }
            public string ViewImage { get; set; }
              
            public int[] CateIds { get; set; }

            public int ViewCount { get; set; }

        [Display(Name = "激活")]
        public bool Active { get; set; }

       public string CategoryIds { get; set; }
        public virtual ICollection<Category> Categories { get; set; }
            public virtual ICollection<ProductPhoto> ProductPhotos { get; set; }
        }
}
